package view;

import java.awt.Dimension;
import java.awt.event.ActionListener;
import java.awt.event.MouseListener;
import java.util.ArrayList;

import javax.print.DocFlavor.URL;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JToolBar;

public class ToolBar extends JToolBar{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public ToolBar() {
		
	}

	public void addButton(String imageString, MouseListener actionListener,String toolTipp) {
		ImageIcon image = new ImageIcon("src/resources/icons/"+imageString);
	    JButton button = new JButton(image);
	    button.setToolTipText(toolTipp);
	    button.addMouseListener(actionListener);
	    add(button);
	    


	   
	}

	
	public void clear() {
		removeAll();
 
	}

	
	

}